package com.hub.frame.pojo;

import org.apache.shiro.authc.UsernamePasswordToken;

/**
 * AuthToken
 *
 * @description:
 * @author hub
 * @create: 2020-05-18 09:49
 */
public class AuthToken extends UsernamePasswordToken {
    private String token;

    public AuthToken(String token) {
        this.token = token;
    }

    @Override
    public Object getPrincipal() {
        return token;
    }

    @Override
    public Object getCredentials() {
        return token;
    }
}
